package com.thinkcube.edutainment.service.viewitem;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.thinkcube.edutainment.R;
import com.thinkcube.edutainment.domain.data.QuestionData;

/**
 * Shanuka @Cyberlmj 3:08:30 PM Email: shanuka.gayashan@cyberlmj.com
 */
@EViewGroup(R.layout.question_view)
public class QuestionItem extends RelativeLayout {

	@ViewById(R.id.textViewTitle)
	TextView textViewTitle;

	@ViewById(R.id.no_comment)
	TextView numComment;

	public QuestionItem(final Context context) {
		super(context);

	}

	public QuestionItem(final Context context, final AttributeSet attrs) {
		super(context, attrs);
	}

	public void bind(final QuestionData questionData) {
		// System.out.println();
		textViewTitle.setText(questionData.getQuestion());
		numComment.setText("2");

	}
}
